package cn.ording.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role  implements java.io.Serializable {


    // Fields    

     private Integer rid;
     private String roleDes;
     private Set users = new HashSet(0);
     private Set resourceses = new HashSet(0);


    // Constructors

    /** default constructor */
    public Role() {
    }

	/** minimal constructor */
    public Role(String roleDes) {
        this.roleDes = roleDes;
    }
    
    /** full constructor */
    public Role(String roleDes, Set users, Set resourceses) {
        this.roleDes = roleDes;
        this.users = users;
        this.resourceses = resourceses;
    }

   
    // Property accessors

    public Integer getRid() {
        return this.rid;
    }
    
    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRoleDes() {
        return this.roleDes;
    }
    
    public void setRoleDes(String roleDes) {
        this.roleDes = roleDes;
    }

    public Set getUsers() {
        return this.users;
    }
    
    public void setUsers(Set users) {
        this.users = users;
    }

    public Set getResourceses() {
        return this.resourceses;
    }
    
    public void setResourceses(Set resourceses) {
        this.resourceses = resourceses;
    }
   








}